package com.yinggu.service;

import com.yinggu.dao.DeptDao;
import com.yinggu.pojo.KDept;

import java.sql.SQLException;
import java.util.List;

public class DeptService {
    DeptDao deptDao = new DeptDao();
    public List<KDept> getDepts() {
        try {
            return deptDao.getDepts();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
        return null;
    }
}
